package com.haoyu.number.Thread;

/**
 * @author: 蒿雨
 * @create: 2021-12-07 17:01
 * @description:线程02
 */
public class T02 extends Thread {
    @Override
    public void run() {
        try {
            pao();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    private static void pao() throws InterruptedException {
        for (int i = 1; i <=10000; i+=50) {
            System.out.println(Thread.currentThread().getName()+"打卡"+i+"米");
            Thread.sleep(50);
        }
    }
}
